package priv.conceit.sc.hoxton.auth.core;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {

    @Bean
    public FilterRegistrationBean registration(TokenFilter tokenFilter) {
        FilterRegistrationBean registration = new FilterRegistrationBean(tokenFilter);
        registration.setEnabled(false);
        return registration;
    }
}
